package com.gitee.elead.mybatisplus.mapper;

import java.util.Collection;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.toolkit.Constants;


/**
 * BaseMapper 基于 MP 删减
 *
 * @author luopeng
 * @see com.baomidou.mybatisplus.core.mapper.BaseMapper
 */
public interface BaseMapper<T> extends com.baomidou.mybatisplus.core.mapper.BaseMapper<T>{



    /**
     * <p>
     * 批量插入数据
     * </p>
     *
     * @param entityList 实体对象集合
     */
    int insertBatchSomeColumn(@Param("list") Collection<T> entityList);

    /**
     * <p>
     * 根据 ID 修改
     * </p>
     *
     * @param entity 实体对象
     */
    int updateAllColumnById(@Param(Constants.ENTITY) T entity);

}
